// 基于template/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{spinalCase ctrl.codeName}}-grid-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

export class GridDataControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		const wfKey = [
			'srftaskid',
			'srftaskdefinitionkey',
			'srfprocessdefinitionkey',
			'srfprocessdefinitionid',
			'srfprocessinstanceid',
		];
		//  表格自持属性
		this.$ownKeys = [
			'auth_log',
			'arg0',
			'arg1',
			'thread_name',
			'reference_flag',
			'arg2',
			'time',
			'srfkey',
			'srfdataaccaction',
			'srfmajortext',
			...wfKey,
		];
	}

	get arg0() {
		return this.$DO.arg0;
	}

	set arg0(value: any) {
		this.$DO.arg0 = value;
	}
	get arg1() {
		return this.$DO.arg1;
	}

	set arg1(value: any) {
		this.$DO.arg1 = value;
	}
	get thread_name() {
		return this.$DO.ip_address;
	}

	set thread_name(value: any) {
		this.$DO.ip_address = value;
	}
	get reference_flag() {
		return this.$DO.status;
	}

	set reference_flag(value: any) {
		this.$DO.status = value;
	}
	get arg2() {
		return this.$DO.arg2;
	}

	set arg2(value: any) {
		this.$DO.arg2 = value;
	}
	get time() {
		return this.$DO.time;
	}

	set time(value: any) {
		this.$DO.time = value;
	}
	get srfkey() {
		return this.$DO.id;
	}

	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfdataaccaction() {
		return this.$DO.id;
	}

	set srfdataaccaction(value: any) {
		this.$DO.id = value;
	}
	get srfmajortext() {
		return this.$DO.name;
	}

	set srfmajortext(value: any) {
		this.$DO.name = value;
	}

	set auth_log(value: any) {
		this.$DO.id = value;
	}
	get auth_log() {
		return this.$DO.id;
	}

	get srftaskid() {
		return this.$DO.srftaskid;
	}

	get srftaskdefinitionkey() {
		return this.$DO.srftaskdefinitionkey;
	}

	get srfprocessdefinitionkey() {
		return this.$DO.srfprocessdefinitionkey;
	}

	get srfprocessdefinitionid() {
		return this.$DO.srfprocessdefinitionid;
	}

	get srfprocessinstanceid() {
		return this.$DO.srfprocessinstanceid;
	}
}

export const GridControlVO = [
	{ name: 'GridControlVO', controlVO: GridDataControlVO },
];
